import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()

pinia.use(persist)

export default pinia

// 引入各个模块的store，并统一导出。使用时只需要引入到store即可
export * from '@/stores/modules/user'